@import './reset';
@import './setting';
@import './flex';

@function getvw($w) {
    @return calc($w / 375) * 100+vw;
}

.container {
    width: getvw(375);
    margin-bottom: getvw(50);
    background: #e9ecf0ff;

    header {
        width: 100%;
        height: getvw(42);
        background-color: #ffffff;
        margin-bottom: getvw(10);

        nav {
            @extend %center;
            height: 100%;

            p {
                color: #000000ff;
                font-size: getvw(16);
                font-weight: 400;
            }
        }
    }

    main {
        width: 100%;
        @extend %columnCenter;

        section {
            width: $themWidth;
            background-color: #FFFFFF;
            border-radius: getvw(5);
            padding: getvw(10);
            margin-bottom: getvw(10);
            box-sizing: border-box;

            &:nth-child(1) {
                ul {
                    width: 100%;

                    li {
                        @extend %betweenCenter;
                        font-weight: 400;
                        border-bottom: 1px solid #f7f9faff;
                        padding: getvw(16) 0;

                        &:first-child {
                            padding-top: 0;
                        }

                        p {
                            font-size: 15px;
                        }

                        span,
                        i {
                            font-size: 14px;
                        }
                    }
                }

                hr {
                    display: block;
                    height: getvw(4);
                    border: none;
                    border-radius: 0 0 getvw(100) getvw(100);
                    background-image: repeating-linear-gradient(45deg, #fb9d81 0, #fb9d81 getvw(15), white 0, white getvw(25), #b9babf 0, #b9babf getvw(40), white 0, white getvw(50));
                }
            }

            &:nth-child(2) {
                @extend %betweenCenter;
                font-size: getvw(14);

                p {
                    font-size: getvw(15);
                }

                i {
                    font-size: getvw(14);
                }
            }

            &:nth-child(3) {
                h3 {
                    font-size: getvw(15);
                    font-weight: 400;
                }

                textarea {
                    width: getvw(335);
                    height: getvw(80);
                    margin: getvw(10) auto getvw(13);
                    padding: getvw(5);
                    box-sizing: border-box;
                    resize: none;
                    border: 1px solid #767676ff;
                    outline: none;
                }
            }

            &:nth-child(4) {
                @extend %betweenCenter;

                .leftBox {
                    @extend %betweenCenter;
                    align-items: flex-start;

                    img {
                        width: getvw(65);
                    }

                    div {
                        font-size: getvw(14);
                        font-weight: 400;
                    }
                }

                &>p {
                    font-size: getvw(14);
                    font-weight: 700;
                }
            }

            &:nth-child(5) {
                ul {
                    li {
                        @extend %betweenCenter;
                        height: getvw(30);

                        .payTitle {
                            font-size: getvw(14);
                            font-weight: 400;
                            margin-bottom: getvw(6)
                        }

                        div {
                            @extend %betweenCenter;

                            p {
                                font-size: getvw(14);
                                font-weight: 400;
                            }
                        }

                        .wechat {
                            i {
                                color: #58b409;
                                font-size: getvw(20);
                            }
                        }

                        .zhifubao {
                            i {
                                color: #18a2eb;
                                font-size: getvw(20);
                            }
                        }
                    }

                    li:nth-child(n + 2) {
                        border-top: getvw(1) solid #f7f9faff;

                        .checked {
                            color: #FF734C;
                            font-size: getvw(16);
                            display: none;
                        }
                    }

                    .show>.checked {
                        display: block !important;
                    }
                }
            }

            &:nth-child(6) {
                @extend %betweenCenter;
                font-size: getvw(14);

                p {
                    font-size: getvw(15);
                }

                i {
                    font-size: getvw(14);
                }
            }

            &:nth-child(7) {
                ul {
                    width: 100%;

                    li {
                        display: flex;

                        &:first-child {
                            margin-bottom: getvw(10);
                        }

                        p {
                            width: 50%;
                            font-size: getvw(14);
                            font-weight: 400;

                            span {
                                color: #ff2222ff;
                            }
                        }
                    }
                }
            }
        }
    }

    footer {
        .bottomTab {
            width: getvw(375);
            height: getvw(50);
            @extend %center;
            background-color: #ffffff;
            font-size: 14px;
            font-weight: 400;
            position: fixed;
            bottom: 0;

            p {
                width: 60%;
                text-align: center;
                color: $themColor;
            }

            button {
                width: 40%;
                height: 100%;
                background-color: $themColor;
                border: none;

                a {
                    color: #fff;
                }
            }
        }
    }
}